home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Nov 89 / 0031-Re TCellSelectComman-Nov89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1003 b   |  26 lines  |  [TEXT/GEOL]

  1. Item    4843423                         3-Nov-89        09:16
  2.  
  3. From:   PASCOE1                         Pascoe, Geoff
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Re TCellSelectCommand bug
  8.  
  9. Curtis,
  10.  
  11. Yeah, this seems to be a bug to me.  I think the proper fix would be to
  12. setfPrevSelection and fDifference to NIL before the call to ICommand.  That
  13. way, when the TCellSelectCommand is freed by a failure handler further up in
  14. the stack the regions will get freed also- but only if they were allocated in
  15. the first place, since we check for NIL before trying to free them.
  16.  
  17. One could set up a failure handler right there to catch the failures but it is
  18. unnecessary since the TCellSelectCommand will need to free them in the object's
  19. free method anyway.  But, if you had assigned these regions to temporaries
  20. (i.e., the object proper did not have a handle to them) you would have to set
  21. up a failure handler since there is no way the Free method could free that
  22. object.
  23.  
  24. Geoff
  25.  
  26.